/**
 * @description Model Manifest
 *
 * @author Xiongmao
 */

var db = require('../db');

const RepairGood = db.model('RepairGood', {
    tableName: 'repair_goods',
    hasTimestamps: true,
    batch() {
        return this.belongsTo('Batch', 'batch_id');
    }
});


RepairGood.Collection = db.Collection.extend({
    model: RepairGood
});

module.exports = RepairGood;
